#---------------------------------------------------------------
# Project created by QtCreator 2015-08-01T00:00:11
#---------------------------------------------------------------

################################################################
# creating a precompiled header file (only supported on some platforms (Windows - all MSVC project types,
# Mac OS X - Xcode, Makefile, Unix - gcc 3.3 and up)
################################################################

CONFIG += precompile_header
PRECOMPILED_HEADER = $$PWD/precomp.h
INCLUDEPATH += $$PWD

################################################################
# sources includes
################################################################

threadpool_headers += \
    $$PWD/jatomic.h \
    $$PWD/jmutex.h \
    $$PWD/jwaitcondition.h \
    $$PWD/jreadwritelock.h \
    $$PWD/jsemaphore.h \
    $$PWD/jthread.h \
    $$PWD/jthreadpool.h \
    $$PWD/private/jthreadpool_p.h \
    $$PWD/jrunnable.h \
    $$PWD/jthreadpool_global.h

tools_headers += \
    $$PWD/tools/jalgorithms.h \
    $$PWD/tools/jiterator.h \
    $$PWD/tools/jobjectobserver.h

# private headers

threadpool_headers_private += \
    $$PWD/jmutex_p.h \
    $$PWD/jreadwritelock_p.h \
    $$PWD/jthread_p.h \
    $$PWD/jwaitcondition_p.h

tools_headers += \
    $$PWD/tools/jobjectobserver_p.h

##
HEADERS += \
    $$threadpool_headers $$threadpool_headers_private \
    $$tools_headers $$tools_headers_private

SOURCES += \
    $$PWD/jatomic.cpp \
    $$PWD/jmutex.cpp \
    $$PWD/jthread.cpp \
    $$PWD/jwaitcondition.cpp \
    $$PWD/jreadwritelock.cpp \
    $$PWD/jsemaphore.cpp \
    $$PWD/jthreadpool.cpp \
    $$PWD/jthreadpool_global.cpp

win32: {
    SOURCES += \
        $$PWD/private/jthread_win.cpp

}

unix: {
    SOURCES += \
        $$PWD/private/jthread_unix.cpp
}

##

framework_headers_threadpool.version = Versions
framework_headers_threadpool.path = Headers
framework_headers_threadpool.files = $$threadpool_headers
